package com.bw.zhuangao5___day002.UI.Reister;

import com.bw.mvp.M.BannerModel;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * create by ertu
 * create on 2021/9/13
 * description
 */
public class ReisterModel extends BannerModel implements ReisterContion.reistermodel  {
    @Override
    public void getreistermodel(String zhang, String mi, Observer<ReisterClass> loginClassObservable) {
        ReisterOkhttp.getReisterOkhttp().getRetrofits(ReisterApl.REISterclas).create(ReisterApl.class).getreister(zhang,mi)
                .observeOn(AndroidSchedulers.mainThread())
                .subscribeOn(Schedulers.computation())
                .subscribe(loginClassObservable);
    }
}
